﻿using System;
using System.Collections.Generic;
using System.Text;

namespace EventBus.Abstractions
{
    /// <summary>
    /// Event.
    /// </summary>
    public interface IEvent
    {
        Guid Id { get; set; }
        DateTime CreateDate { get; set; }

        Guid AggregationRootId { get; set; }

        string AssemblyQualifiedAggregationRootIdType { get; set; }
        string AssemblyQualifiedAggregationRootType { get; set; }                                                                                                                                                                                                                                                                                  
        int Version { get; set; }
        byte[] Data { get; set; }
    }
}
